package edu.jit.service.impl;

import edu.jit.entity.Good;
import edu.jit.mapper.GoodMapper;
import edu.jit.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodMapper goodMapper;
    @Override
    public Good findById(Long id) {
        return goodMapper.findById(id);
    }

    @Override
    public int update(Good good) {
        return goodMapper.update(good);
    }

    @Override
    public int deleteById(Long id) {
        return goodMapper.deleteById(id);
    }
}
